html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    .carousel {
        margin: 0 auto;
        border: 1px solid #f5f5f5;
        position: relative;
        box-sizing: border-box;
        width: 1000px;
        height: 600px;
        overflow: hidden;
        button {
            outline: none;
            border: 1px solid #f5f5f5;
            padding: 8px 15px;
            background-color: rgba(0, 0, 0, 0.6);
            color: #fff;
            cursor: pointer;
            margin:0 10px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            transition: all 0.3s;
            &:hover{
                background-color: rgba(37, 33, 33, 0.6);
            }
        }
        .btn-next {
            right: 0;
        }
        .carousel-wrapper{
            height: 100%;
            position: relative;
            background-color: #ccc;
            overflow: hidden;
            transition: transform .5s;
            &.fade{
                .carousel-item{
                    width: 100%;
                    height:100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    opacity: 0;
                    transition:all .5s;
                    img{
                        width: 100%;
                        height:100%;
                    }
                    &.active{
                        opacity: 1;
                    }
                }
            }
            &.slider{
                display:flex;
                .carousel-item{
                    height: 100%;
                    transition:all .5s;
                    img{
                        width: 100%;
                        height:100%;
                    }
                    &.active{
                        opacity: 1;
                    }
                }
            }
           
        }
        .carousel-indicator {
            position: absolute;
            bottom: 20px;
            left: 50%;
            font-size: 0;
            transform: translateX(-50%);
            background-color: rgba(0,0,0,0.8);
            padding: 5px 12px;
            border-radius: 12px;
            i {
                width: 8px;
                height: 8px;
                border: 1px solid #f5f5f5;
                display: inline-block;
                margin-left: 5px;
                padding: 2px;
                border-radius: 50%;
                background-clip: content-box;
                cursor:pointer;
                &.active{
                    background-color: #fff;
                }
                &:nth-of-type(1){
                    margin-left: 0;
                }
            }
        }
    }
}